import abaloneageprediction

# 这是主函数，是一个示例，接口是abaloneageprediction.predict_age函数，向这个函数中传入一个有8位数字的属组，即可得到结果
# 8位数字的数组，分别是["Length", 'Diameter', 'Height','Whole weight','Shucked weight', 'Viscera weight', 'Shell weight', 'sex']
# sex分为M I F，要分别转换为数字1 0 -1

if __name__ == '__main__':
    print("")
    ex = [0.295, 0.225, 0.08, 0.124, 0.0485, 0.032, 0.04, 0]
    ex2 = [0.455, 0.365, 0.095, 0.514, 0.2245, 0.101, 0.15, 1]
    ex3 = [0.33, 0.255, 0.08, 0.205, 0.0895, 0.0395, 0.055, 0]
    print("Estimated age : ", abaloneageprediction.predict_age(ex))
    print("Estimated age2 : ", abaloneageprediction.predict_age(ex2))
    print("Estimated age2 : ", abaloneageprediction.predict_age(ex3))
